---
title: Linkup Tools
---

## Code

```python cookbook/tools/linkup_tools.py
from agno.agent import Agent
from agno.tools.linkup import LinkupTools

agent = Agent(
    instructions=[
        "You are a web search assistant that provides comprehensive search results",
        "Use Linkup to find detailed and relevant information from the web",
        "Provide structured search results with source attribution",
    ],
    tools=[LinkupTools()],
    markdown=True,
)

agent.print_response("Search for the latest developments in quantum computing")
```

## Usage

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Set your API keys">
    ```bash
    export LINKUP_API_KEY=your-linkup-api-key
    export OPENAI_API_KEY=xxx
    ```
  </Step>

  <Step title="Install libraries">
    ```bash
    pip install -U linkup-sdk openai agno
    ```
  </Step>

  <Step title="Run Agent">
    <CodeGroup>
    ```bash Mac
    python cookbook/tools/linkup_tools.py
    ```

    ```bash Windows
    python cookbook/tools/linkup_tools.py
    ```
    </CodeGroup>
  </Step>
</Steps>
